package www.openteam.com.contract.qualityCntrl;

import www.openteam.com.bean.FQCBadItem;
import www.openteam.com.bean.FQCCheckItem;
import www.openteam.com.bean.FQCCheckMan;
import www.openteam.com.bean.FQCCrMaMi;
import www.openteam.com.bean.FQCGoodsField;
import www.openteam.com.bean.FQCGoodsInspect;
import www.openteam.com.bean.FQCHalfGoodsInspect;
import www.openteam.com.bean.FQCSamplePlan;

/**
 * Created by Administrator on 2018/3/23 0023.
 */

public class FQCContract {

   public interface FQCView{

        //生成入库
        void findGoodsFeildSuccess(FQCGoodsField fqcGoodsField);

       //成品检验
       void findGoodsInspectSuccess(FQCGoodsInspect fqcGoodsInspect);

       /**
        * 半成品检验
        * @param fqcHalfGoodsInspect
        */
       void findHalfGoodsInspectSuccess(FQCHalfGoodsInspect fqcHalfGoodsInspect);

        //抽检计划
        void findSamplePlan(FQCSamplePlan fqcSamplePlan);

       //抽检计划:结果
       void findSamplePlanResult(FQCSamplePlan fqcSamplePlan);

        //CR,MA,MI
        void findElement(FQCCrMaMi fqcCrMaMi,String mark);

        //检查项目
        void findCheckItem(FQCCheckItem fqcCheckItem);

       //检查员
       void findCheckMan(FQCCheckMan fqcCheckMan);

        //缺点项
        void findBadItem(FQCBadItem fqcBadItem);

        void fail(String msg);
    }

    public interface FQCPresenter{

        void findGoodsFeild();

        void findGoodsInspect();

        void findHalfGoodsInspect();

        void findSamplePlan(int storage);

        void findSamplePlanResult(int storage,String code);

        void findElement(int element,int checkNum,String mark);

        //检查项目
        void findCheckItem();


        void findCheckMan();

        //缺点项
        void findBadItem(String code);
    }
}
